package com.atguigu.educms.controller;


import com.atguigu.commonutils.R;
import com.atguigu.educms.entity.CrmBanner;
import com.atguigu.educms.service.CrmBannerService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * banner表 前台控制器
 * </p>
 *
 * @author testjava
 * @since 2022-08-11
 */

@RestController
@RequestMapping("/educms/crmbannerfront")
//@CrossOrigin
public class FrontBannerController {

    @Autowired
    CrmBannerService crmBannerService;

    @GetMapping("/getAllBanner")
    public R getAllBanner(){
        List<CrmBanner> list=crmBannerService.selectAllBanner();
        return R.ok().data("list",list);
    }



}

